package com.example.goodsserver.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel(value="商品信息")
public class GoodsInfo {
    @TableId
    @ApiModelProperty(value="主键")
    private String id;
    @TableField("title")
    @ApiModelProperty(value="商品标题")
    private String title;
    @TableField("description")
    @ApiModelProperty(value="商品标题")
    private String description;
    @TableField("price")
    @ApiModelProperty(value="商品价格")
    private Double price;
    @TableField("status")
    @ApiModelProperty(value="商品状态") //审核状态1审核中，2通过，3审核不通过，4下架
    private int status;
    @TableField("user_id")
    @ApiModelProperty(value="发布人id")
    private String userId;
    @TableField("address")
    @ApiModelProperty(value="地址")
    private String address;
    @TableField("method")
    @ApiModelProperty(value="支持的交易方式{1,2,3,...}")
    private String method;
    @TableField("photo")
    @ApiModelProperty(value="图片地址")
    private String photo;
    @TableField("photo_a")
    @ApiModelProperty(value="图片地址A")
    private String photoA;
    @TableField("photo_b")
    @ApiModelProperty(value="图片地址B")
    private String photoB;
    @TableField("photo_c")
    @ApiModelProperty(value="图片地址C")
    private String photoC;
    @TableField("photo_d")
    @ApiModelProperty(value="图片地址D")
    private String photoD;
    @TableField("photo_e")
    @ApiModelProperty(value="图片地址E")
    private String photoE;
    @TableField("create_time")
    @ApiModelProperty(value="创建时间")
    private Date createTime;
    @TableField("update_time")
    @ApiModelProperty(value="更新时间")
    private Date updateTime;

    public GoodsInfo(){
    }

}
